﻿using Wei8808Cms.DAL;
using Wei8808Cms.Model;

namespace Wei8808Cms.BLL
{
    public class WebSetBLL
    {
        private readonly WebSetDAL _dal=new WebSetDAL();

        /// <summary>
        ///  读取配置文件
        /// </summary>
        /// <param name="configFilePath"></param>
        /// <returns></returns>
        public WebSet LoadConfig(string configFilePath)
        {
            return _dal.LoadConfig(configFilePath);
        }

        /// <summary>
        ///  保存配置文件
        /// </summary>
        /// <param name="model"></param>
        /// <param name="configFilePath"></param>
        /// <returns></returns>
        public WebSet SaveConifg(WebSet model, string configFilePath)
        {
            return _dal.SaveConifg(model, configFilePath);
        }
    }
}
